package com.caigou.modules.forum.adpter

import com.caigou.modules.forum.R
import com.caigou.modules.forum.bean.PacketRecordItemBean
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * @author #Suyghur.
 * Created on 2021/11/20
 */
class PacketRecordItemAdapter(dataset: MutableList<PacketRecordItemBean>) :
    BaseQuickAdapter<PacketRecordItemBean, BaseViewHolder>(R.layout.item_packet_record_list, dataset) {

    override fun convert(holder: BaseViewHolder, item: PacketRecordItemBean) {
        holder.setText(R.id.item_packet_record_tv_nickname, item.receiverNickName)
        holder.setText(R.id.item_packet_record_tv_desc, "领取${item.senderNickName}的红包 获得")
        holder.setText(R.id.item_packet_record_tv_money, item.amount.toString())
    }
}